﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="analysisResultsCriteria.aspx.cs"
    Inherits="analysisResultsCriteria" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="Content-Language" content="tr" />
    <link rel="stylesheet" type="text/css" href="/c/vk.css" />

    <script src="/s/common.js" type="text/javascript"></script>

    <script src="/s/serverRequest.js" type="text/javascript"></script>

    <title>Liste</title>
    <base target="pano" />
</head>
<body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" onload="loadDealers();removeQVNSpecificOptionsIfQVO();">
    <form method="POST" action="/forms/analysisResults/analysisResults.aspx" target="pano"
    name="30_PRP301.asp">
    <table class="table20" border="0" cellpadding="0" cellspacing="1" width="100%" style="border-width: 1px;
        border-collapse: collapse" bordercolor="#FFFFFF">
        <tr>
            <td class="t_head" align="center" height="19" colspan="8" style="background-color: #336699">
                <font color="#FFFFFF" size="2">Analiz</font>
            </td>
        </tr>
        <tr>
            <td width="10%" class="t_head" align="center" height="13">
                &nbsp;Başlama
            </td>
            <td width="10%" class="t_head" align="center" height="13">
                Bitiş
            </td>
            <td width="6%" class="t_head" align="center" height="13">
                Periyod
            </td>
            <td width="15%" class="t_head" align="center" height="13">
                Marka
            </td>
            <td width="15%" class="t_head" align="center" height="13">
                Şebeke
            </td>
            <td width="20%" class="t_head" align="center" height="13">
                Bayi
            </td>
            <td width="10%" class="t_head" align="center" height="13">
                Satış Danışmanı
            </td>
            <td align="center" class="t_head" align="center" height="13" width="19%">
            </td>
        </tr>
        <tr>
            <td align="center">
                <font size="1">
                    <select size="1" name="s" style="font-family: Tahoma; font-size: 8pt; background-color: #FFFFFF"
                        tabindex="4">
                        <asp:Literal ID="startMonthOptions" runat="server" />
                    </select>
            </td>
            <td align="center">
                <font size="1">
                    <select size="1" name="e" style="font-family: Tahoma; font-size: 8pt; background-color: #FFFFFF"
                        tabindex="4">
                        <asp:Literal ID="endMonthOptions" runat="server" />
                    </select>
            </td>
            <td align="center">
                <p align="center">
                    <select size="1" name="c" style="font-family: Tahoma; font-size: 8pt; background-color: #FFFFFF"
                        tabindex="4">
                        <%=periodSelectionOptions%>
                    </select>
            </td>
            <td align="center">
                <select onchange="loadDealers();" size="1" id="make" name="make" style="width: 50%;
                    font-family: Tahoma; font-size: 8pt; background-color: #FFFFFF" tabindex="4">
                    <asp:Literal ID="makeSelection" runat="server" />
                </select>
            </td>
            <td align="center">
                <select onchange="loadDealers();" size="1" id="ct" name="ct" style="font-family: Tahoma;
                    font-size: 8pt; background-color: #FFFFFF" tabindex="4">
                    <asp:Literal ID="networklist" runat="server" />
                </select>
            </td>
            <td align="center">
                <select size="1" onchange="loadSalesPeople();" id="d" name="d" style="width: 90%; font-family: Tahoma; font-size: 8pt;
                    background-color: #FFFFFF" tabindex="4">
                </select>
            </td>
            <td align="center">
                <select size="1" id="sp" name="sp" style="width: 90%; font-family: Tahoma; font-size: 8pt;
                    background-color: #FFFFFF" tabindex="4" disabled="disabled">
                    <option value="">Tümü</option>
                </select>
            </td>
            <td align="center">
                <input type="submit" value="        Ara        " name="B1" style="font-family: Tahoma;
                    font-size: 8pt">
                <input type="reset" value="Temizle" name="B2" style="font-family: Tahoma; font-size: 8pt">
            </td>
        </tr>
        <% if (userProjectName == Global.PROJECT_QRA) %>
        <% { %>
        <tr>
            <td class="t_head" align="right">
                Onarım Durumu: &nbsp;&nbsp;&nbsp;
            </td>
            <td colspan="6" align="left">
                <select name="flt" style="font-family: Tahoma; font-size: 8pt; background-color: #FFFFFF">
                    <option value="">Tümü</option>
                    <option value="QY=1">Olay yerinde onarıldı</option>
                    <option value="QY=2">Olay yerinde onarılamadı, servise çekildi</option>
                    <option value="QY=3">Olay yerinde onarılamadı, kendim servise çektim</option>
                </select>
            </td>
        </tr>
        <% } %>
    </table>
    <hr noshade="noshade" color="#F87878">
    </form>
</body>

<script language="javascript" type="text/javascript">
    function loadDealers()
    {
        ServerRequest.Execute("/jsCommand/dealerList.aspx", "POST", Array("ct", g("ct").value, "v", "0", "d", g('d').value, "make", g("make").value));
    }
    function loadSalesPeople()
    {
        ServerRequest.Execute("/jsCommand/salesPeopleList.aspx", "POST", Array("d", g('d').value));
    }
    function removeQVNSpecificOptionsIfQVO()
    {
        if(<asp:Literal id="isQVOOrDacia" runat="server" />)
        {
            var obj = document.getElementById("ct");
            obj.options.length = 1; obj.options[0].innerHTML = "Şebeke 1: Yetkili Satıcı";
        }
    }    
</script>

</html>
